<?php
/**
 * Created by PhpStorm.
 * User: adophper
 * Date: 2018/5/5
 * Time: 下午4:08
 */

?>
<div class="ajax-recommend hidden" id="index_recommend_<?=$category_id?>">
<?php
if (!empty($data)){
?>
<ul class="recomedBox_list fbox" data-id="<?=$category_id?>">
    <?php
    foreach ($data as $val) {
        ?>
        <li class="fl">
            <div class="recomedBox_item_img_box"><a href="<?=Yii::$app->urlManager->createUrl(['zhanhui/detail', 'id' => $val['id']])?>" target="_blank" title="<?=$val['title']?>"><img src="<?=$val['litpic']?>" alt="<?=$val['title']?>" /></a></div>
            <div class="recomedBox_item_min">
                <p class="t_o_lin recomedBox_item_min_title"><i class="t_red">[<a href="<?=Yii::$app->urlManager->createUrl(['zhanhui/index', 'category_id' => $val['category_id'], 'category_name' => $val['category_name']])?>" class="t_red" target="_blank"><?=$val['category_name']?></a>]</i><a href="<?=Yii::$app->urlManager->createUrl(['zhanhui/detail', 'id' => $val['id']])?>" target="_blank" class="exhibition_title" title="<?=$val['title']?>"><?=$val['title']?></a></p>
                <p class="recomedBox_item_min_info flex f_between">
                    <span class="t_o"><?=Yii::t('frontend', 'exhibition_time')?>：<?=$val['show_start']?><i><?=Yii::t('frontend', 'to')?></i><?=$val['show_end']?></span>
                    <span class="t_o"><?=Yii::t('frontend', 'place')?>：<?=$val['city']?></span>
                </p>
                <div class="recomedBox_item_min_tab flex">
                    <a href="javascript:;" class="flex_tel list_qrcode" data-parent="li.fl"><i class="flex f_center"><?=Yii::t('frontend', 'qrcode')?></i><em class="flex f_center iconfont large">&#xe8d2;</em></a>
                    <a href="<?=Yii::$app->urlManager->createUrl(['zhanhui/detail', 'id' => $val['id']])?>#photo" class="flex_tel"><i class="flex f_center"><?=Yii::t('frontend', 'highlights')?></i><em class="flex f_center iconfont top">&#xe649;</em></a>
                    <a href="<?=Yii::$app->urlManager->createUrl(['zhanhui/detail', 'id' => $val['id']])?>#video" class="flex_tel"><i class="flex f_center">VR</i><em class="flex f_center iconfont large">&#xe77e;</em></a>
                    <a href="<?=Yii::$app->user->isGuest ? Yii::$app->urlManager->createUrl(['member/login']) : Yii::$app->urlManager->createUrl(['zhanhui/detail', 'id' => $val['id']])?>#comments" class="flex_tel"><i class="flex f_center"><?=Yii::t('frontend', 'comments')?></i><em class="flex f_center iconfont small pencil">&#xe608;</em></a>
                </div>
            </div>
            <div class="wCode_mark sel hidden">
                <span><img src="<?=$val['wechat_qrcode']?>" /></span>
                <em>进入展会手机官网</em>
            </div>
        </li>
        <?php
    }
    ?>
</ul>
<?php
}else{
?>
<p class="text-center" style="padding: 30px 0;">暂无数据!</p>
<?php
}
?>
</div>
